package com.wideplay.warp.remoting;

import com.google.inject.Key;

import java.lang.annotation.Annotation;

/**
 * Created by IntelliJ IDEA.
* User: dprasanna
* Date: 1/10/2007
* Time: 15:50:37
* <p/>
* TODO: Describe me!
*
* @author dprasanna
* @since 1.0
*/
class RemoteBinding<T> {
    private final Class<T> iface;
    private final Key<? extends T> binding;
    private final Class<? extends Annotation> remoteScope;

    public RemoteBinding(Class<T> iface, Key<? extends T> binding, Class<? extends Annotation> remoteScope) {
        this.iface = iface;
        this.binding = binding;
        this.remoteScope = remoteScope;
    }

    public Class<T> getIface() {
        return iface;
    }


    public Key<? extends T> getBinding() {
        return binding;
    }

    public Class<? extends Annotation> getRemoteScope() {
        return remoteScope;
    }
}
